<!--include:header-->
<script type="text/javascript">
function popnew(url,title,width,height){
	var w = 1024;
	var h = 768;
	if (document.all || document.layers){
		w = screen.availWidth;
		h = screen.availHeight;
	}
	var leftPos = (w/2-width/2);
	var topPos = (h/2-height/2);
	window.open(url,title,"width="+width+",height="+height+",top="+topPos+",left="+leftPos+",scrollbars=no,resizable=yes,status=no");
}
</script>
<div id="m_Body">
<div id="wrapper">
<div class="news-full">
<div class="news-body">
<div class="mainbody">
  <table border="0"  cellspacing="0" cellpadding="0" style="width:100%;">
    <tr>
      <td valign="top" style="width:150px;"><div class="tableborder">
        <div class="tableheader">站点管理</div>
        <div class="leftmenubody">
        <div class="leftmenuitem">&#8226; <a href="index.php?action=profile">修改资料</a></div>
          <div class="leftmenuitem">&#8226; <a href="myfeeds.php?action=addsite">添加站点</a></div>
          <div class="leftmenuitem">&#8226; <a href="myfeeds.php?action=list">站点管理</a></div>
          <div class="leftmenuitem">&#8226; <a href="index.php?action=logout">退出</a></div>
          <!--if:($ixnagroup == 1) -->
          <div class="leftmenuitem">&#8226; <a href="admin/">后台站点</a></div>
          <!--/if-->
        </div>
      </div></td>
      <td valign="top" style="width:20px;"></td>
      <td valign="top">
	  <form action="myfeeds.php" method="POST" name="form"><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
	  <tr><td class="rightmainbody"><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<!--if: (in_array($action, array('addsite', 'modsite')))-->
    <input type="hidden" name="action" value="do{$action}">
    <input type="hidden" name="sid" value="$site[siteid]">
    <tr class="tdbheader">
      <td colspan="2">添加站点</td>
    </tr>
    <tr class="tablecell">
      <td>站点名称:</td>
      <td><input name="title" type="text" class="formfield" value="$site[site_title]" size="35" maxlength="100" id="title"></td>
    </tr>
    <tr class="tablecell">
      <td>站点地址:</td>
      <td><input name="url" type="text" class="formfield" value="$site[site_url]" size="50" maxlength="100"></td>
    </tr>
    <tr class="tablecell">
      <td>RSS地址:</td>
      <td><input name="rss_url" type="text" id="rss_url" value="$site[rss_url]" size="50" maxlength="100" /></td>
    </tr>
    <tr class="tablecell">
      <td>ICON地址:</td>
      <td><input name="icon" type="text" id="icon" value="$site[site_icon]" size="50" maxlength="100" /></td>
    </tr>
    <tr class="tablecell">
      <td>标签:</td>
      <td><input class="formfield" type="text" name="keywords" size="70" maxlength="110" value="$site[keywords]"> <img src="../images/digg/insert.gif" alt="插入已经使用的Tag" onclick="popnew('tags.php?action=getalltags','tag',250,330)" style="cursor:pointer" /><br />
        用“,”分隔多个关键字, 最多允许添加5个关键字, 每个关键字不能超过20个字符。准确、详尽的标签可以让其他人更容易找到此信息。请至少填写一个相关标签内容。.</td>
    </tr>

    <tr class="tablecell">
      <td>入库数:</td>
      <td><input name="count" type="text" id="count" value="$site[site_count]" size="50" maxlength="100" /></td>
    </tr>
    <tr class="tablecell">
      <td>站点说明:</td>
      <td><textarea name="content" cols="35" class="formfield" id="content">$site[site_content]</textarea></td>
    </tr>
    <tr class="tablecell">
      <td>RSS分类:</td>
      <td><select id="rss_cate" name="rss_cate"><!--for_option:$catecache cid $v $site[rss_cate]-->$v[cate_title]<!--/for_option--></select></select></td>
    </tr>
    
    <tr class="tablecell">
      <td colspan="2" align="center"><input type="submit" value="提交" class="formbutton"> <input type="reset" value="重置" class="formbutton"></td>
    </tr>
<!--elseif:($action == 'list')-->
    <input type="hidden" name="action" value="domoresite">
    <tr class="tdbheader">
      <td width="6%" nowrap>排序</td>
      <td width="10%">状态</td>
      <td width="20%">名称</td>
      <td width="10%">建立时间</td>
      <td width="15%">更新时间</td>
      <td width="15%">操作</td>
      <td width="2%" nowrap><input name="chkall" value="on" type="checkbox" onclick="checkall(this.form)"></td>
    </tr>
<!--for:$sitedb $key $site-->
    <tr class="tablecell">
      <td><input class="formfield" style="text-align:center;font-size:11px;" type="text" value="$site[displayorder]" name="displayorder[$site[siteid]]" size="1"></td>
      <td><select name="state[$site[siteid]]">$site[state]</select></td>
      <td><a href="$site[rss_url]"><img src="../images/admin/feed.png" alt="RSS地址" border="0" /></a> <a href="$site[site_url]">$site[site_title]</a><a href="$site[rss_url]"></a></td>
      <td>$site[addtime] </td>
      <td>$site[uptime]</td>
      <td><a href="myfeeds.php?action=modsite&amp;sid=$site[siteid]"><img src="../images/admin/feed_add.png" alt="$lang[_LANG_0407]" border="0" class="img"/></a> <a href="myfeeds.php?action=dofetch&amp;sid=$site[siteid]"><img src="../images/admin/feed_go.png" alt="$lang[_LANG_0405]" border="0" class="img"/></a> <a href="myfeeds.php?action=doClear&amp;id=$site[siteid]" onclick="return confirm('确认清空除此站点所属的内容?');"><img src="../images/admin/feed_error.png" alt="$lang[_LANG_0408]" border="0" class="img"/></a> <a href="http://feedvalidator.org/check.cgi?url=$site[rss_url]"><img src="../images/admin/feed_link.png" alt="$lang[_LANG_0406]" border="0" class="img"/></a>[$site[feed_count]]</td>
      <td nowrap><input type="checkbox" name="delete[]" value="$site[siteid]"></td>
    </tr>
<!--/for-->
  <tr class="tablecell">
    <td colspan="9" nowrap="nowrap"><div class="records">记录:$tatol</div>
                  <div class="multipage">$multipage</div></td>
  </tr>
    <tr class="tablecell">
      <td colspan="7" align="center"><input type="submit" value="更新 / 删除(所选)" class="formbutton"></td>
    </tr>

<!--elseif:($action == 'opml')-->
<input type="hidden" name="action" value="doopml">
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<tr class="tdbheader">
      <td colspan="2">OPML导入</td>
    </tr>
    <tr class="tablecell">
      <td>站点名称:</td>
      <td><input name="source_url" type="text" class="burnfeed" style="width:490px;" 
				 value="可以填写博客的网址、Feed的网址、QQ号码"
					 onfocus="this.className='burnfeed2';this.value='http://';" onblur="if((value=='http://')||(value=='')) {this.value='可以填写博客的网址、Feed的网址、QQ号码';this.className='burnfeed'}" /></td>
    </tr>
    
    <tr class="tablecell">
      <td colspan="2" align="center"><input type="submit" value="提交" class="formbutton"> <input type="reset" value="重置" class="formbutton"></td>
    </tr>
<!--/if-->
    <tr>
      <td class="tablebottom" colspan="7"></td>
    </tr>
      </table></td>
    </tr>
  </table>
</form></td>
    </tr>
  </table>
</div>
</div>
</div>
</div>
</div>
<br style="clear: both;" />
<!--include:footer-->
